local lock meaning in English
局部锁
Examples
- Listing 1 shows a simplified example of a thread - local lock object
清单1展示了一个线程本地锁对象的简化示例: - Blocks that use thread - local lock objects . if the compiler can prove using escape analysis that an object is never published to the heap , it must be a thread - local object and therefore any
如果编译器能够证实(使用escape分析)某个对象从未发布到堆中,那么它肯定是个线程本地对象,所以任何使用这个对象作为锁的